package com.kws.merchant.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kws.merchant.domain.AfterSalesHistory;
import com.kws.merchant.domain.AfterSalesWarranty;
import com.kws.merchant.domain.po.AfterSalesWarrantyPo;
import com.kws.merchant.domain.vo.AfterSalesWarrantyVo;

import java.util.List;

/**
 * 售后-保修单(AfterSalesWarranty)表服务接口
 *
 * @author yxy
 * @since 2024-10-22 19:23:10
 */
public interface AfterSalesWarrantyService extends IService<AfterSalesWarranty> {

    /**
     * 分页查询列表
     *
     * @param afterSalesWarrantyPo
     * @return
     */
    Page<AfterSalesWarranty> pageList(AfterSalesWarrantyPo afterSalesWarrantyPo);

    /**
     * 通过主键查询单条数据
     * @param id
     * @return
     */
    AfterSalesWarranty detailById(Long id);

    boolean delete(List<Long> idList);

    /**
     * 保修处理
     * @return
     */
    boolean dispose(AfterSalesWarranty afterSalesWarranty);

    /**
     * 新增保修单
     * @param afterSalesWarranty
     * @return
     */
    boolean addItem(AfterSalesWarranty afterSalesWarranty);
}
